import logo from './logo.svg';
import './App.css';
import {
  BrowserRouter as Router,
  Route,
  Link,
  Redirect,
} from "react-router-dom";
import Page from './Todo/Page'
import Todo from './Todo/Todo'
import React, { Component } from 'react'

export default class App extends Component {
  render() {
    return (
      <div>
        <Router>
          <Link to='/page'>页面</Link>
          <Link to='/todo'>Todolist</Link>
          <Redirect to="/page"></Redirect>
          <Route path='/page' exact component={Page}></Route>
          <Route path='/todo' exact component={Todo}></Route>
          </Router>
      </div>
    )
  }
}

